import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';
var ɵ0 = { type: 'string' };
var YlfxComponentViewmodel = /** @class */ (function (_super) {
    tslib_1.__extends(YlfxComponentViewmodel, _super);
    function YlfxComponentViewmodel() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.bindingPath = '/jmsmds/ylfxs';
        _this.dom = {
            "dataGrid_ylfx": {
                "type": "DataGrid",
                "resourceId": "dataGrid_ylfx",
                "visible": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": true
                },
                "id": "dataGrid_ylfx",
                "size": {},
                "readonly": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": false
                },
                "fields": [
                    {
                        "type": "GridField",
                        "resourceId": "mdyye_eb1f18a6_6q17",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "mdyye_eb1f18a6_6q17",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "mdyye",
                            "fullPath": "mdyye",
                            "isExpression": false,
                            "value": "mdyye"
                        },
                        "dataField": "mdyye",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "门店营业额",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "mdyye_eb1f18a6_nm4v",
                            "defaultI18nValue": "门店营业额",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "mdyye_eb1f18a6_nm4v",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "mdyye",
                                "isExpression": false,
                                "value": "mdyye"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "resizeable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "mdcb_1509d61a_0ews",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "mdcb_1509d61a_0ews",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "mdcb",
                            "fullPath": "mdcb",
                            "isExpression": false,
                            "value": "mdcb"
                        },
                        "dataField": "mdcb",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "门店成本",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "mdcb_1509d61a_tm8e",
                            "defaultI18nValue": "门店成本",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "mdcb_1509d61a_tm8e",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "mdcb",
                                "isExpression": false,
                                "value": "mdcb"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "resizeable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "mdlr_88b6d257_7zkn",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "mdlr_88b6d257_7zkn",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "mdlr",
                            "fullPath": "mdlr",
                            "isExpression": false,
                            "value": "mdlr"
                        },
                        "dataField": "mdlr",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "门店利润",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "mdlr_88b6d257_359s",
                            "defaultI18nValue": "门店利润",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "mdlr_88b6d257_359s",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "mdlr",
                                "isExpression": false,
                                "value": "mdlr"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "resizeable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "mdylr_35be6172_07ue",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "mdylr_35be6172_07ue",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "mdylr",
                            "fullPath": "mdylr",
                            "isExpression": false,
                            "value": "mdylr"
                        },
                        "dataField": "mdylr",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "门店月利润",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "mdylr_35be6172_0ond",
                            "defaultI18nValue": "门店月利润",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "mdylr_35be6172_0ond",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "mdylr",
                                "isExpression": false,
                                "value": "mdylr"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "resizeable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "mdnlr_b775486b_wv24",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "mdnlr_b775486b_wv24",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "mdnlr",
                            "fullPath": "mdnlr",
                            "isExpression": false,
                            "value": "mdnlr"
                        },
                        "dataField": "mdnlr",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "门店年利润",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "mdnlr_b775486b_9giw",
                            "defaultI18nValue": "门店年利润",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "mdnlr_b775486b_9giw",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "mdnlr",
                                "isExpression": false,
                                "value": "mdnlr"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "resizeable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    }
                ],
                "multiSelect": false,
                "editable": "viewModel.stateMachine['editable']",
                "showLineNumber": false,
                "lineNumberTitle": "#",
                "groupTotalText": "Total",
                "filterable": false,
                "groupable": false,
                "rowClass": ""
            }
        };
        return _this;
    }
    YlfxComponentViewmodel.prototype.ylfxAddItem1 = function (commandParam) { return; };
    YlfxComponentViewmodel.prototype.ylfxRemoveItem1 = function (commandParam) { return; };
    tslib_1.__decorate([
        NgCommand({
            name: 'ylfxAddItem1',
            params: {}
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], YlfxComponentViewmodel.prototype, "ylfxAddItem1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'ylfxRemoveItem1',
            params: {
                id: '{DATA~/#{ylfx-component/jmsmds}/ylfxs/id}'
            },
            paramDescriptions: {
                id: ɵ0
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], YlfxComponentViewmodel.prototype, "ylfxRemoveItem1", null);
    YlfxComponentViewmodel = tslib_1.__decorate([
        Injectable()
    ], YlfxComponentViewmodel);
    return YlfxComponentViewmodel;
}(ViewModel));
export { YlfxComponentViewmodel };
export { ɵ0 };
